﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Artikl"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class ArtiklEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// ComboBox for the ID property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the Naziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNaziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Naziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxNazivLabel;
		
		/// <summary>
		/// TextBox for the BarCode property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBarCode;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BarCode property.
		/// </summary>
		protected System.Windows.Forms.Label uxBarCodeLabel;
		
		/// <summary>
		/// TextBox for the Kataloskibroj property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKataloskibroj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Kataloskibroj property.
		/// </summary>
		protected System.Windows.Forms.Label uxKataloskibrojLabel;
		
		/// <summary>
		/// TextBox for the OptimalnaKol property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOptimalnaKol;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OptimalnaKol property.
		/// </summary>
		protected System.Windows.Forms.Label uxOptimalnaKolLabel;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Slika property.
		/// </summary>
		protected System.Windows.Forms.Label uxSlikaLabel;
		
		/// <summary>
		/// ComboBox for the IDProizvodac property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDProizvodac;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDProizvodac property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDProizvodacLabel;
		
		/// <summary>
		/// ComboBox for the IDJedinicnaMjera property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDJedinicnaMjera;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDJedinicnaMjera property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDJedinicnaMjeraLabel;
		
		/// <summary>
		/// ComboBox for the IDArtiklKategorija property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDArtiklKategorija;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDArtiklKategorija property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDArtiklKategorijaLabel;
		
		/// <summary>
		/// ComboBox for the IDPorez property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDPorez;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDPorez property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDPorezLabel;
		
		/// <summary>
		/// TextBox for the Usluga property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxUsluga;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Usluga property.
		/// </summary>
		protected System.Windows.Forms.Label uxUslugaLabel;
		
		/// <summary>
		/// TextBox for the CijenaUsluge property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxCijenaUsluge;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the CijenaUsluge property.
		/// </summary>
		protected System.Windows.Forms.Label uxCijenaUslugeLabel;
		
		/// <summary>
		/// ComboBox for the IDArtiklStatus property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDArtiklStatus;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDArtiklStatus property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDArtiklStatusLabel;
		#endregion
		
		#region Main entity
		private Entities.Artikl _Artikl;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Artikl"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Artikl"/> instance.</value>
		public Entities.Artikl Artikl
		{
			get {return this._Artikl;}
			set
			{
				this._Artikl = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("SelectedValue", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNaziv.DataBindings.Clear();
			this.uxNaziv.DataBindings.Add("Text", this.uxBindingSource, "Naziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBarCode.DataBindings.Clear();
			this.uxBarCode.DataBindings.Add("Text", this.uxBindingSource, "BarCode", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKataloskibroj.DataBindings.Clear();
			this.uxKataloskibroj.DataBindings.Add("Text", this.uxBindingSource, "Kataloskibroj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOptimalnaKol.DataBindings.Clear();
			this.uxOptimalnaKol.DataBindings.Add("Text", this.uxBindingSource, "OptimalnaKol", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDProizvodac.DataBindings.Clear();
			this.uxIDProizvodac.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDProizvodac", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDJedinicnaMjera.DataBindings.Clear();
			this.uxIDJedinicnaMjera.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDJedinicnaMjera", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDArtiklKategorija.DataBindings.Clear();
			this.uxIDArtiklKategorija.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDArtiklKategorija", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDPorez.DataBindings.Clear();
			this.uxIDPorez.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDPorez", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxUsluga.DataBindings.Clear();
			this.uxUsluga.DataBindings.Add("Text", this.uxBindingSource, "Usluga", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxCijenaUsluge.DataBindings.Clear();
			this.uxCijenaUsluge.DataBindings.Add("Text", this.uxBindingSource, "CijenaUsluge", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDArtiklStatus.DataBindings.Clear();
			this.uxIDArtiklStatus.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDArtiklStatus", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="ArtiklEditControlBase"/> class.
		/// </summary>
		public ArtiklEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Artikl != null) _Artikl.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.ComboBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxNaziv = new System.Windows.Forms.TextBox();
			uxNazivLabel = new System.Windows.Forms.Label();
			this.uxBarCode = new System.Windows.Forms.TextBox();
			uxBarCodeLabel = new System.Windows.Forms.Label();
			this.uxKataloskibroj = new System.Windows.Forms.TextBox();
			uxKataloskibrojLabel = new System.Windows.Forms.Label();
			this.uxOptimalnaKol = new System.Windows.Forms.TextBox();
			uxOptimalnaKolLabel = new System.Windows.Forms.Label();
			uxSlikaLabel = new System.Windows.Forms.Label();
			this.uxIDProizvodac = new System.Windows.Forms.ComboBox();
			uxIDProizvodacLabel = new System.Windows.Forms.Label();
			this.uxIDJedinicnaMjera = new System.Windows.Forms.ComboBox();
			uxIDJedinicnaMjeraLabel = new System.Windows.Forms.Label();
			this.uxIDArtiklKategorija = new System.Windows.Forms.ComboBox();
			uxIDArtiklKategorijaLabel = new System.Windows.Forms.Label();
			this.uxIDPorez = new System.Windows.Forms.ComboBox();
			uxIDPorezLabel = new System.Windows.Forms.Label();
			this.uxUsluga = new System.Windows.Forms.TextBox();
			uxUslugaLabel = new System.Windows.Forms.Label();
			this.uxCijenaUsluge = new System.Windows.Forms.TextBox();
			uxCijenaUslugeLabel = new System.Windows.Forms.Label();
			this.uxIDArtiklStatus = new System.Windows.Forms.ComboBox();
			uxIDArtiklStatusLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxNazivLabel
			//
			this.uxNazivLabel.Text = "Naziv:";
			this.uxNazivLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxNazivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNazivLabel);			
			//
			// uxNaziv
			//
			this.uxNaziv.Width = 250;
			this.uxNaziv.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNaziv);
			this.uxNaziv.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxNaziv);
			//
			// uxBarCodeLabel
			//
			this.uxBarCodeLabel.Text = "BarCode:";
			this.uxBarCodeLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxBarCodeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBarCodeLabel);			
			//
			// uxBarCode
			//
			this.uxBarCode.Width = 250;
			this.uxBarCode.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxBarCode);
			this.uxBarCode.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxBarCode);
			//
			// uxKataloskibrojLabel
			//
			this.uxKataloskibrojLabel.Text = "Kataloskibroj:";
			this.uxKataloskibrojLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxKataloskibrojLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKataloskibrojLabel);			
			//
			// uxKataloskibroj
			//
			this.uxKataloskibroj.Width = 250;
			this.uxKataloskibroj.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxKataloskibroj);
			this.uxKataloskibroj.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxKataloskibroj);
			//
			// uxOptimalnaKolLabel
			//
			this.uxOptimalnaKolLabel.Text = "OptimalnaKol:";
			this.uxOptimalnaKolLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxOptimalnaKolLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOptimalnaKolLabel);			
			//
			// uxOptimalnaKol
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxOptimalnaKol);
			this.uxOptimalnaKol.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxOptimalnaKol);
			//
			// uxIDProizvodacLabel
			//
			this.uxIDProizvodacLabel.Text = "IDProizvodac:";
			this.uxIDProizvodacLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxIDProizvodacLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDProizvodacLabel);			
			//
			// uxIDProizvodac
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDProizvodac);
			this.uxIDProizvodac.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxIDProizvodac);
			//
			// uxIDJedinicnaMjeraLabel
			//
			this.uxIDJedinicnaMjeraLabel.Text = "IDJedinicnaMjera:";
			this.uxIDJedinicnaMjeraLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxIDJedinicnaMjeraLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDJedinicnaMjeraLabel);			
			//
			// uxIDJedinicnaMjera
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDJedinicnaMjera);
			this.uxIDJedinicnaMjera.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxIDJedinicnaMjera);
			//
			// uxIDArtiklKategorijaLabel
			//
			this.uxIDArtiklKategorijaLabel.Text = "IDArtiklKategorija:";
			this.uxIDArtiklKategorijaLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxIDArtiklKategorijaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtiklKategorijaLabel);			
			//
			// uxIDArtiklKategorija
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtiklKategorija);
			this.uxIDArtiklKategorija.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxIDArtiklKategorija);
			//
			// uxIDPorezLabel
			//
			this.uxIDPorezLabel.Text = "IDPorez:";
			this.uxIDPorezLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxIDPorezLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDPorezLabel);			
			//
			// uxIDPorez
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDPorez);
			this.uxIDPorez.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxIDPorez);
			//
			// uxUslugaLabel
			//
			this.uxUslugaLabel.Text = "Usluga:";
			this.uxUslugaLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxUslugaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxUslugaLabel);			
			//
			// uxUsluga
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxUsluga);
			this.uxUsluga.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxUsluga);
			//
			// uxCijenaUslugeLabel
			//
			this.uxCijenaUslugeLabel.Text = "CijenaUsluge:";
			this.uxCijenaUslugeLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxCijenaUslugeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxCijenaUslugeLabel);			
			//
			// uxCijenaUsluge
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxCijenaUsluge);
			this.uxCijenaUsluge.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxCijenaUsluge);
			//
			// uxIDArtiklStatusLabel
			//
			this.uxIDArtiklStatusLabel.Text = "IDArtiklStatus:";
			this.uxIDArtiklStatusLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIDArtiklStatusLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtiklStatusLabel);			
			//
			// uxIDArtiklStatus
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtiklStatus);
			this.uxIDArtiklStatus.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIDArtiklStatus);
			//
			// uxID
			//				
			this.uxID.DisplayMember = "Naziv";	
			this.uxID.ValueMember = "ID";	
			//
			// uxIDArtiklKategorija
			//				
			this.uxIDArtiklKategorija.DisplayMember = "Naziv";	
			this.uxIDArtiklKategorija.ValueMember = "ID";	
			//
			// uxIDJedinicnaMjera
			//				
			this.uxIDJedinicnaMjera.DisplayMember = "Naziv";	
			this.uxIDJedinicnaMjera.ValueMember = "ID";	
			//
			// uxIDArtiklStatus
			//				
			this.uxIDArtiklStatus.DisplayMember = "Naziv";	
			this.uxIDArtiklStatus.ValueMember = "ID";	
			//
			// uxIDProizvodac
			//				
			this.uxIDProizvodac.DisplayMember = "ImeKlijenta";	
			this.uxIDProizvodac.ValueMember = "ID";	
			//
			// uxIDPorez
			//				
			this.uxIDPorez.DisplayMember = "Naziv";	
			this.uxIDPorez.ValueMember = "ID";	
			// 
			// ArtiklEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "ArtiklEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Artikl> _IDList;
		
		/// <summary>
		/// The ComboBox associated with the ID property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Artikl> IDList
		{
			get {return _IDList;}
			set 
			{
				this._IDList = value;
				this.uxID.DataSource = null;
				this.uxID.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the ID property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDList
		{
			get { return _allowNewItemInIDList;}
			set
			{
				this._allowNewItemInIDList = value;
				this.uxID.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.ArtiklKategorija> _IDArtiklKategorijaList;
		
		/// <summary>
		/// The ComboBox associated with the IDArtiklKategorija property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.ArtiklKategorija> IDArtiklKategorijaList
		{
			get {return _IDArtiklKategorijaList;}
			set 
			{
				this._IDArtiklKategorijaList = value;
				this.uxIDArtiklKategorija.DataSource = null;
				this.uxIDArtiklKategorija.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDArtiklKategorijaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDArtiklKategorija property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDArtiklKategorijaList
		{
			get { return _allowNewItemInIDArtiklKategorijaList;}
			set
			{
				this._allowNewItemInIDArtiklKategorijaList = value;
				this.uxIDArtiklKategorija.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.ArtiklMjera> _IDJedinicnaMjeraList;
		
		/// <summary>
		/// The ComboBox associated with the IDJedinicnaMjera property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.ArtiklMjera> IDJedinicnaMjeraList
		{
			get {return _IDJedinicnaMjeraList;}
			set 
			{
				this._IDJedinicnaMjeraList = value;
				this.uxIDJedinicnaMjera.DataSource = null;
				this.uxIDJedinicnaMjera.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDJedinicnaMjeraList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDJedinicnaMjera property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDJedinicnaMjeraList
		{
			get { return _allowNewItemInIDJedinicnaMjeraList;}
			set
			{
				this._allowNewItemInIDJedinicnaMjeraList = value;
				this.uxIDJedinicnaMjera.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.ArtiklStatus> _IDArtiklStatusList;
		
		/// <summary>
		/// The ComboBox associated with the IDArtiklStatus property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.ArtiklStatus> IDArtiklStatusList
		{
			get {return _IDArtiklStatusList;}
			set 
			{
				this._IDArtiklStatusList = value;
				this.uxIDArtiklStatus.DataSource = null;
				this.uxIDArtiklStatus.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDArtiklStatusList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDArtiklStatus property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDArtiklStatusList
		{
			get { return _allowNewItemInIDArtiklStatusList;}
			set
			{
				this._allowNewItemInIDArtiklStatusList = value;
				this.uxIDArtiklStatus.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Klijent> _IDProizvodacList;
		
		/// <summary>
		/// The ComboBox associated with the IDProizvodac property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Klijent> IDProizvodacList
		{
			get {return _IDProizvodacList;}
			set 
			{
				this._IDProizvodacList = value;
				this.uxIDProizvodac.DataSource = null;
				this.uxIDProizvodac.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDProizvodacList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDProizvodac property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDProizvodacList
		{
			get { return _allowNewItemInIDProizvodacList;}
			set
			{
				this._allowNewItemInIDProizvodacList = value;
				this.uxIDProizvodac.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Porez> _IDPorezList;
		
		/// <summary>
		/// The ComboBox associated with the IDPorez property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Porez> IDPorezList
		{
			get {return _IDPorezList;}
			set 
			{
				this._IDPorezList = value;
				this.uxIDPorez.DataSource = null;
				this.uxIDPorez.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDPorezList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDPorez property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDPorezList
		{
			get { return _allowNewItemInIDPorezList;}
			set
			{
				this._allowNewItemInIDPorezList = value;
				this.uxIDPorez.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
